package com.pvdnc.dxhook;

import java.lang.reflect.Method;

public class ReplaceCallback extends HookCallback {
    @Override
    public final void beforeHookedMethod(Method oldMethod, Object oldObject, Object thisRef, Object[] args) {
        super.beforeHookedMethod(oldMethod, oldObject, thisRef, args);
        beforeHookedMethod(oldMethod, thisRef, args);
    }

    @Override
    public final void afterHookedMethod(Method oldMethod, Object oldObject, Object thisRef, Object[] args) {
        super.afterHookedMethod(oldMethod, oldObject, thisRef, args);
        afterHookedMethod(oldMethod, thisRef, args);
    }

    public void beforeHookedMethod(Method oldMethod,Object thisRef,Object[] args){}

    public void afterHookedMethod(Method oldMethod,Object thisRef,Object[] args){}
}
